﻿<%@ Page Language="C#" MasterPageFile="~/SingleMasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" Title="用户登陆" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxUserName" ErrorMessage="用户名不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxPassWord" ErrorMessage="密码不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
    <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBoxUserName"
        Display="Dynamic" ErrorMessage="用户名不存在" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
    <asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="TextBoxPassWord"
        Display="Dynamic" ErrorMessage="密码错误" OnServerValidate="CustomValidator2_ServerValidate"></asp:CustomValidator>
          </div>
        </div>
    <div id="login">
      <div id="loginbox">
        <h1>请输入用户名和密码</h1>
        <p>
          <asp:TextBox ID="TextBoxUserName" CssClass="username" size="30" runat="server" ></asp:TextBox>
          <asp:TextBox ID="TextBoxPassWord" CssClass="password" size="30" runat="server" TextMode="Password"></asp:TextBox>
          <label>您还没有<a href="UserRegister.aspx">注册</a>？</label>
          <asp:ImageButton ID="ButtonLogin" CssClass="loginbutton" runat="server" ImageUrl="images/loginbutton.gif" OnClick="ButtonLogin_Click"/>
        </p>
      </div>
    </div>
</asp:Content>